package activitytest.example.com.application;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;

import activitytest.example.com.application.utils.SpUtils;

/**
 * Created by zhanyihong on 2017/12/6.
 */

public class SetupOverActivity extends Activity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        boolean setup_over = SpUtils.getBoolean(this, ConstantValue.SETUP_OVER, false);
        if (setup_over) {
            setContentView(R.layout.activity_setup_over);
        } else {
            Intent intent1 = new Intent(this, Setup1Activity.class);
            startActivity(intent1);

            finish();
        }
    }
}
